package com.swjd.sell.exception;

import com.swjd.sell.pojo.enums.ResultEnum;

/**
 * 自定义异常
 * @author 刘涛
 * @create 2021/8/27 23:01
 */
public class SellException extends RuntimeException {
    private Integer value;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getStatus());
        this.value = resultEnum.getValue();
    }
}
